package com.deductive.domain.wq;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 战时救治机构后送时间统计表
 * @TableName disposition_wq_zsjzjghssjtj
 */
@TableName(value ="disposition_wq_zsjzjghssjtj")
@Data
public class DispositionWqZsjzjghssjtj implements Serializable {
    /**
     * id
     */
    @TableId(value = "id",type= IdType.AUTO)
    private Integer id;

    /**
     * 负伤至营救护所
     */
    @TableField(value = "fszyjhs_num")
    private Integer fszyjhsNum;

    /**
     * 负伤至旅(团)救护所
     */
    @TableField(value = "fszljhs_num")
    private Integer fszljhsNum;

    /**
     * 负伤至野战医疗所(队)
     */
    @TableField(value = "fszyzyls_num")
    private Integer fszyzylsNum;

    /**
     * 负伤至军队医院
     */
    @TableField(value = "fszjdyy_injury_num")
    private Integer fszjdyyInjuryNum;

    /**
     * 统计时间段
     */
    @TableField(value = "statistical_period")
    private String statisticalPeriod;

    /**
     * 救治机构
     */
    @TableField(value = "rehabilitation_institution")
    private String rehabilitationInstitution;

    /**
     * 关联推演
     */
    @TableField(value = "derivation")
    private String derivation;

    /**
     * 统计时间
     */
    @TableField(value = "statistical_time")
    private Date statisticalTime;

    /**
     * 统计人员
     */
    @TableField(value = "statistical_personnel")
    private String statisticalPersonnel;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DispositionWqZsjzjghssjtj other = (DispositionWqZsjzjghssjtj) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getFszyjhsNum() == null ? other.getFszyjhsNum() == null : this.getFszyjhsNum().equals(other.getFszyjhsNum()))
            && (this.getFszljhsNum() == null ? other.getFszljhsNum() == null : this.getFszljhsNum().equals(other.getFszljhsNum()))
            && (this.getFszyzylsNum() == null ? other.getFszyzylsNum() == null : this.getFszyzylsNum().equals(other.getFszyzylsNum()))
            && (this.getFszjdyyInjuryNum() == null ? other.getFszjdyyInjuryNum() == null : this.getFszjdyyInjuryNum().equals(other.getFszjdyyInjuryNum()))
            && (this.getStatisticalPeriod() == null ? other.getStatisticalPeriod() == null : this.getStatisticalPeriod().equals(other.getStatisticalPeriod()))
            && (this.getRehabilitationInstitution() == null ? other.getRehabilitationInstitution() == null : this.getRehabilitationInstitution().equals(other.getRehabilitationInstitution()))
            && (this.getDerivation() == null ? other.getDerivation() == null : this.getDerivation().equals(other.getDerivation()))
            && (this.getStatisticalTime() == null ? other.getStatisticalTime() == null : this.getStatisticalTime().equals(other.getStatisticalTime()))
            && (this.getStatisticalPersonnel() == null ? other.getStatisticalPersonnel() == null : this.getStatisticalPersonnel().equals(other.getStatisticalPersonnel()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getFszyjhsNum() == null) ? 0 : getFszyjhsNum().hashCode());
        result = prime * result + ((getFszljhsNum() == null) ? 0 : getFszljhsNum().hashCode());
        result = prime * result + ((getFszyzylsNum() == null) ? 0 : getFszyzylsNum().hashCode());
        result = prime * result + ((getFszjdyyInjuryNum() == null) ? 0 : getFszjdyyInjuryNum().hashCode());
        result = prime * result + ((getStatisticalPeriod() == null) ? 0 : getStatisticalPeriod().hashCode());
        result = prime * result + ((getRehabilitationInstitution() == null) ? 0 : getRehabilitationInstitution().hashCode());
        result = prime * result + ((getDerivation() == null) ? 0 : getDerivation().hashCode());
        result = prime * result + ((getStatisticalTime() == null) ? 0 : getStatisticalTime().hashCode());
        result = prime * result + ((getStatisticalPersonnel() == null) ? 0 : getStatisticalPersonnel().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", fszyjhsNum=").append(fszyjhsNum);
        sb.append(", fszljhsNum=").append(fszljhsNum);
        sb.append(", fszyzylsNum=").append(fszyzylsNum);
        sb.append(", fszjdyyInjuryNum=").append(fszjdyyInjuryNum);
        sb.append(", statisticalPeriod=").append(statisticalPeriod);
        sb.append(", rehabilitationInstitution=").append(rehabilitationInstitution);
        sb.append(", derivation=").append(derivation);
        sb.append(", statisticalTime=").append(statisticalTime);
        sb.append(", statisticalPersonnel=").append(statisticalPersonnel);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}